﻿@model DrillOnline.Models.DrillSubjectEvent
@{
    Layout = "_Layout.cshtml";

    ViewBag.Title = "Video";
    var src = "/Content/Media/" + Model.AttachmentKey;
}
<div style="position:absolute;opacity:.7;">
    <span style="font-weight:bold;font-size:large; color: white;background-color:#444">视频资源</span><br /><br />
    <span style="font-weight:bold;font-size:small; color: white;background-color:#444">@Model.Title</span>
</div>

<script type="text/javascript" src="~/scripts/jwplayer.js"></script>
<div id="myElement">正在加载视频...</div>

<script type="text/javascript">
    jwplayer("myElement").setup({
        height: "100%",
        width:"100%",
        file: "@(src)",
        autostart: true,
        repeat:true
    });
</script>